<div class="form-group row">
    <label class="form-label col-3 col-form-label">运行实例：</label>
    <div class="col">
        <select id="agent_id" name="agent_id" class="form-select">
            <option value="0">全部</option>
            {{- range .AgentList}}
            {{if ne .Alias ""}}
            <option value="{{.ID}}" {{if eq $.AgentID .ID}}selected{{end}}>{{.Alias}}</option>
            {{else}}
            <option value="{{.ID}}" {{if eq $.AgentID .ID}}selected{{end}}>{{.IP}}:{{.Port}}</option>
            {{end}}
            {{- end}}
        </select>
    </div>
</div>